package lastRites.enums;

public enum AnimationName {
	MOVE_NORTH, MOVE_SOUTH, MOVE_WEST, MOVE_EAST, 
	ATTACK_NORTH, ATTACK_SOUTH, ATTACK_WEST, ATTACK_EAST, 
	JUMP, FLY, CAST, 
	IDLE_NORTH, IDLE_SOUTH, IDLE_WEST, IDLE_EAST;
	
	public Direction getCardinalDirection() {
		String dir = this.name().substring( this.name().indexOf("_")+1 );
		return Direction.valueOf( dir );
	}
}
